package com.itheima.dao;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Select;

/**
 * mybatis的用户接口
 */
public interface UserMapper {
    /**
     * 根据主键查询记录
     *
     * @param id
     * @return
     */
    @Select("select * from user where id=#{id}")
    public User select(Long id);
}
